package com.zbkj.service.dao;

import com.zbkj.common.model.agent.CommunityStat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.response.CommunityStatBusinessAmountResponse;
import com.zbkj.common.response.CommunityStatInfoFrontResponse;
import com.zbkj.common.response.CommunityStatRankingResponse;
import com.zbkj.common.response.MerchantCommunityStatInfoFrontResponse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 小区分红统计表 Mapper 接口
 * </p>
 *
 * @author Caiyc
 * @since 2025-07-21
 */
public interface CommunityStatDao extends BaseMapper<CommunityStat> {

    CommunityStatBusinessAmountResponse findBusinessAmountData(Map<String, Object> map);

    List<CommunityStatRankingResponse> findConsumeRankingList(Map<String, Object> map);

    CommunityStatBusinessAmountResponse findMerchantBusinessAmountData(Map<String, Object> map);

    /**
     * 未结算金额-总营业额
     * @param map
     * @return
     */
    CommunityStatBusinessAmountResponse findUnsettledBusinessAmountData(Map<String, Object> map);

    /**
     * 未结算金额-商户营业额
     * @param map
     * @return
     */
    CommunityStatBusinessAmountResponse findUnsettledMerchantBusinessAmountData(Map<String, Object> map);
}
